package com.dtx.stack;

import java.util.Stack;

public class StackTest {

    private Stack<String> stack;



    public static void main(String[] args) {
        StackTest stackTest = new StackTest();
        stackTest.stack = new Stack<String>();
        stackTest.stack.push("A");
        stackTest.stack.push("B");
        stackTest.stack.push("C");
        stackTest.stack.push("D");
        System.out.println(stackTest.stack.peek());

    }
}
